#include "EquationSolver.h"
#include <iostream>
#include <cmath>
//#define M_PI 3.14159265358979323846


double Function :: operator()(double _x)
{
    return (_x-tan(_x));
}
double Function :: diff(double _x)
{
    return (1-1/(cos(_x)*cos(_x)));
};

int main()
{
    Function func;
    Newton New(7.7, 100, func);
    std::cout << New.solve() << std::endl;
    return 0;
};